//
// Created by grant on 9/20/18.
//

#ifndef DEMO_C_HTTP_HTTP_LINUX_H
#define DEMO_C_HTTP_HTTP_LINUX_H

//********Http Header Settings begin**********//
void setAccept(char *accept);
void setAcceptRanges(char *ranges);
void setAuthorization(char *authorization);
void setCacheControl(char *cacheControl);
void setCookie(char *cookie);
void setContentType(char *contentType);
void setProxyAuthorization(char *proxyAuthorization);
void setRange(char *ranges);
void setUserAgent(char *userAgent);

//********Http Header Settings end**********//

int http_get(char *host,int port,char *uri,char **response);
int http_post(char *host,int port,char *uri,char *params,char **response);

#endif //DEMO_C_HTTP_HTTP_LINUX_H
